﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CommunitySystemModel;

namespace CommunitySystem.Web.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“ICiZhiTuiXiuService”。
    [ServiceContract]
    public interface ICiZhiTuiXiuService
    {
        [OperationContract]
        ObservableCollection<CiZhiModel> GetCiZhiModel(string orgid, int id);
        [OperationContract]
        bool InsertCiZhi(CiZhiModel model);
        [OperationContract]
        bool UpdateCiZhi(CiZhiModel model);
        [OperationContract]
        bool UpdateCiZhiStatus(int id,DateTime? dt);
        [OperationContract]
        bool DeleteCiZhi(int id);

        [OperationContract]
        ObservableCollection<TuiXiuModel> GetTuiXiuModel(string orgid, int id);
        [OperationContract]
        bool InsertTuiXiu(TuiXiuModel model);
        [OperationContract]
        bool UpdateTuiXiu(TuiXiuModel model);
        [OperationContract]
        bool UpdateTuiXiuStatus(int id, DateTime? dt);
        [OperationContract]
        bool DeleteTuiXiu(int id);
    }
}
